<?php $this->renderPartial('application.views.commen._header'); ?>
<?php $this->renderPartial('application.views.commen._menu'); ?>
<?php
$cs = Yii::app()->clientScript;
$themePath = dirname(Yii::app()->theme->baseUrl);
$assetsPath = $themePath.'/web';
?>
<!--classify Focus Special start-->
<div class="main clearfix">
   <?php $this->renderPartial('application.views.commen._down_menu'); ?>
   <div class="Focus">
      <!-- 代码 开始 -->
<div class="www51buycom">
    <ul class="51buypic" style="display:block; height:263px;">
	<?php foreach($flash_info as $v){?>

        <li><a href="<?php echo $v->url;?>" target="_blank"><img width="563"  height="100%" src="<?php echo Yii::app()->request->hostInfo.Yii::app()->baseUrl."/";?><?php echo $v->img?>" /></a></li>

		<?php }?>
    </ul>
    <a class="prev" href="javascript:void(0)"></a>
    <a class="next" href="javascript:void(0)"></a>
    <div class="num">
    	<ul></ul>
    </div>
</div>
<script>
/*鼠标移过，左右按钮显示*/
$(".www51buycom").hover(function(){
	$(this).find(".prev,.next").fadeTo("show",0.1);
},function(){
	$(this).find(".prev,.next").hide();
})
/*鼠标移过某个按钮 高亮显示*/
$(".prev,.next").hover(function(){
	$(this).fadeTo("show",0.7);
},function(){
	$(this).fadeTo("show",0.1);
})
$(".www51buycom").slide({ titCell:".num ul" , mainCell:".51buypic" , effect:"fold", autoPlay:true, delayTime:700 , autoPage:true });
</script>
<!-- 代码 结束 -->
   
   </div>
   <div class="Special">
      <div class="Special_title">
         <span class="name f15">特色推荐</span>
         <span class="more"><a href="<?php echo $this->createUrl('recommend/index');?>">更多>></a></span>
      </div>
      <ul class="Special_Content">
	     <?php foreach($data as $v){?>
         <li><a href="<?php echo Yii::app()->createUrl("Discount/content",array("id"=>$v->id));?>" target="_blank"><?php echo strfun::cutstr($v->title,15);?></a></li>
		 <?php }?>
      </ul>
      <div class="clear"> </div>
  </div>
   <div class="clear"> </div>
</div>
<!--classify Focus Special end-->
<div class="main clearfix marT10">
   <div class="Discount_title">优惠信息</div>
   <div class="Discount_more"><a target="_blank" href="<?php echo $this->createUrl('discount/index');?>">更多</a></div>
   <div class="clear"> </div>
</div>
<div class="main clearfix">
  <ul class="Discount clearfix">
     <?php foreach($article_info as $v){?>
		<li> <a target="_blank" href="<?php echo Yii::app()->createUrl("Discount/content",array("id"=>$v->id));?>"><img src="<?php echo Yii::app()->request->hostInfo.Yii::app()->baseUrl."/";?><?php echo $v->litpic;?>" width="282" height="188" /></a>
		  <div class="title"> <a href="#"> <span class="fb"><a href="<?php echo Yii::app()->createUrl("Discount/content",array("id"=>$v->id));?>" target="_blank"><?php echo $v->title;?></a></span> <span class="xq"><?php echo $v->description;?></span></a></div>
		  <?php if(!empty($v->other->discount)){
		  	?>
		  <div class="price">
			<div class="p-price"> <span class="col-size"><?php echo $v->other->discount;?></span></div>
			<a target="_blank" href="<?php echo Yii::app()->createUrl("Discount/content",array("id"=>$v->id));?>">查看详情</a></div>
		<?php }else{?>
		<div class="price">
        <div class="p-price"> <span class="col-size">¥<?php echo ($v->other->xprice * 100)/100;?></span> <span class="hui666 marL10">价值 ¥<?php echo ($v->other->yprice*100)/100;?></span></div>
        <a target="_blank" href="<?php echo Yii::app()->createUrl("discount/content",array("id"=>$v->id));?>">查看详情</a></div>
		<?php }?>
		</li>
		
		
	<?php }?>
  </ul>
  <div class="clear"> </div>
</div>
<div class="main clearfix marT12">
   <a target="_blank" href="<?php echo $this->createUrl('discount/index');?>" class="more_discount">更多优惠信息>></a>
</div>
<?php $this->renderPartial('application.views.commen._footer'); ?>
